package fina2.dcs.menu;

import java.io.Serializable;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.Id;
import javax.persistence.Table;

import org.jboss.seam.annotations.Name;

@Entity
@Table(name = "SYS_MENUS")
@Name("menu")
@SuppressWarnings("serial")
public class Menu implements Serializable {
	private long id;
	private long parentid;
	private long namestrid;
	private long type;
	private String actionkey;
	private String application;
	private long sequence;

	@Id
	@GeneratedValue
	@Column(name = "ID")
	public long getId() {
		return id;
	}

	public void setId(long id) {
		this.id = id;
	}

	@Column(name = "PARENTID")
	public long getParentid() {
		return parentid;
	}

	public void setParentid(long parentid) {
		this.parentid = parentid;
	}

	@Column(name = "NAMESTRID")
	public long getNamestrid() {
		return namestrid;
	}

	public void setNamestrid(long namestrid) {
		this.namestrid = namestrid;
	}

	@Column(name = "TYPE")
	public long getType() {
		return type;
	}

	public void setType(long type) {
		this.type = type;
	}

	@Column(name = "ACTIONKEY")
	public String getActionkey() {
		return actionkey;
	}

	public void setActionkey(String actionkey) {
		this.actionkey = actionkey;
	}

	@Column(name = "APPLICATION")
	public String getApplication() {
		return application;
	}

	public void setApplication(String application) {
		this.application = application;
	}

	@Column(name = "SEQUENCE")
	public long getSequence() {
		return sequence;
	}

	public void setSequence(long sequence) {
		this.sequence = sequence;
	}

}
